export enum Environment {
    Development = 'development',
    Production = 'production'
}

export enum RouterSource {
    Frontend = 'frontend',
    Backend = 'backend'
}

export enum RouterMode {
    Hash = 'hash',
    HISTORY = 'history'
}

export enum TokenStorageName {
    LocalStorage = 'localStorage',
    SessionStorage = 'sessionStorage',
    Cookie = 'cookie'
}

export interface Settings {
    title: string
    //基础url
    baseURL: string
    routesWhiteList: string[]
    // token失效回退到登录页时是否记录本次的路由
    fixedHeader: boolean
    // 是否显示logo，不显示时设置false，显示时请填写remixIcon图标名称，暂时只支持设置remixIcon
    logo: string
    version: string,
    showTagsView: boolean,

}

const settings: Partial<Settings> = {
    //项目中页面显示的名称
    title: 'Vue3管理后台',
    routesWhiteList: ['/login', '/auth-redirect'],
    baseURL: process.env.VUE_APP_BASE_API,
    fixedHeader: false,
    showTagsView: true,
    // 是否显示logo，不显示时设置false，显示时请填写remixIcon图标名称，暂时只支持设置remixIcon
    logo: require('@/assets/logo.png'),
    version: '1.0'
}

export default settings
